package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.dao.StudentDao;
import cn.com.dcsgo.dao.impl.StudentDaoImpl;
import cn.com.dcsgo.pojo.Student;
import cn.com.dcsgo.service.StudentService;

import java.util.List;

/**
 * TODO
 *
 * @author Dcsgo
 * @since 2025/2/4 16:05
 */

public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    public StudentDao getStudentDao() {
        return studentDao;
    }

    public void setStudentDao(StudentDaoImpl studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public List<Student> findAll() {
        return studentDao.queryAll();
    }
}
